<template>
    <div style="padding:20px">
        <div style="padding:10px 15px;font-size:20px">您的身高？</div>
        <van-cell-group>
            <van-field placeholder="请输入身高"/>
        </van-cell-group>
        <div style="padding:10px 15px;font-size:20px">您的学历？</div>
        <van-cell-group>
            <van-field
                    readonly
                    clickable
                    :value="educationalValue"
                    placeholder="请选择"
                    @click="showEducational = true"
            />
            <van-popup v-model="showEducational" position="bottom">
                <van-picker
                        show-toolbar
                        :columns="educational"
                        @cancel="showEducational = false"
                        @confirm="onEducational"
                />
            </van-popup>
        </van-cell-group>
        <div style="padding:10px 15px;font-size:20px">您的职业？</div>
        <van-cell-group>
            <van-field placeholder="请输入职业"/>
        </van-cell-group>
        <div style="padding:10px 15px;font-size:20px">您的年收入？</div>
        <van-cell-group>
            <!--<van-field placeholder="请输入年收入"/>-->
            <van-field
                    readonly
                    clickable
                    :value="incomeValue"
                    placeholder="请选择"
                    @click="showIncome = true"
            />
            <van-popup v-model="showIncome" position="bottom">
                <van-picker
                        show-toolbar
                        :columns="income"
                        @cancel="showIncome = false"
                        @confirm="onIncome"
                />
            </van-popup>
        </van-cell-group>
        <div style="padding:10px 15px;font-size:20px">您当前所在城市？</div>
        <van-cell-group>
            <van-field placeholder="请输入城市"/>
        </van-cell-group>
        <div style="padding:10px 15px;font-size:20px">添加您的真实微信</div>
        <van-cell-group>
            <van-field placeholder="请输入微信号"/>
        </van-cell-group>
        <router-link to="/myPhoto">
            <div
                style="display:flex;justify-content: flex-end;align-items:center;padding:20px;color:orangered"
            >下一步
                <van-icon name="arrow"/>
            </div>
        </router-link>
    </div>
</template>

<script>
export default {
    data(){
        return{
            incomeValue: '',
            showIncome: false,
            income: ['0-10W', '10-15W', '15—20W', '20-30W', '30W以上'],
            educationalValue:'',
            showEducational:false,
            educational:['高中','大专','本科','硕士及以上']
        }
    },
    methods:{
        onIncome(value) {
            this.incomeValue = value;
            this.showIncome = false;
        },
        onEducational(value) {
            this.educationalValue = value;
            this.showEducational = false;
        }
    }
};
</script>

<style  scoped>
</style>
